package com.cwh.taskcenter.reward.converter;

import com.cwh.taskcenter.domain.reward.model.RewardRecord;
import com.cwh.taskcenter.reward.model.RewardRecordDO;

/**
 * @author cwh
 */
public class RewardRecordConverter {


    public static RewardRecordDO toRewardRecordDO(RewardRecord rewardRecord) {
        RewardRecordDO rewardRecordDO = new RewardRecordDO();
        rewardRecordDO.setId(rewardRecord.getId());
        rewardRecordDO.setUserId(rewardRecord.getUserId());
        rewardRecordDO.setTaskId(rewardRecord.getTaskId());
        rewardRecordDO.setUserTaskId(rewardRecord.getUserTaskId());
        rewardRecordDO.setRewardType(rewardRecord.getRewardType());
        rewardRecordDO.setRewardValue(rewardRecord.getRewardValue());
        rewardRecordDO.setRewardStatus(rewardRecord.getRewardStatus());
        rewardRecordDO.setClaimTime(rewardRecord.getClaimTime());
        rewardRecordDO.setExpireTime(rewardRecord.getExpireTime());
        return rewardRecordDO;
    }


}
